How can I correctly handle the string mąka in Python without causing a codec exception